<HTML><HEAD><TITLE>compound(?Term)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">Type Testing</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>compound(?Term)</H1>
Succeeds if Term is of type compound, i.e.  a structure or a list.


<DL>
<DT><EM>Term</EM></DT>
<DD>Prolog term.
</DD>
</DL>
<H2>Description</H2>
   Used to test whether Term is a compound term.

<P>

<H3>Modes and Determinism</H3><UL>
<LI>compound(?) is semidet
</UL>
<H3>Fail Conditions</H3>
Fails if Term is not a compound term
<H2>Examples</H2>
<PRE>
   Success:
   compound(f(1,2)).
   compound([1,2,3]).
   compound(.(1,2)).
   Fail:
   compound("f(1,2)").
   compound(Term).
   compound(atom).



</PRE>
<H2>See Also</H2>
<A HREF="../../kernel/typetest/atom-1.html">atom / 1</A>, <A HREF="../../kernel/typetest/atomic-1.html">atomic / 1</A>, <A HREF="../../kernel/typetest/callable-1.html">callable / 1</A>, <A HREF="../../kernel/typetest/is_list-1.html">is_list / 1</A>, <A HREF="../../kernel/typetest/var-1.html">var / 1</A>
</BODY></HTML>
